
//换肤js
function hf() {
    let hf_btn= my$("#huanfu_btn");
    let hf_nav=my$("#huanfu_nav")
    let pf_beijing=my$(".Homebody");
    let up_btn=my$("#up_btn");

    let count=0;
    hf_btn.onclick=function(){
        up_btn.style.color="white"
        up_btn.style.background="black"
        count++;
        if (count%2==1){
            hf_nav.style.display="flex";
            hf_btn.style.color="black"
            hf_btn.style.background="white"
        }
        else{
            hf_nav.style.display="none";
            hf_btn.style.color="white"
            hf_btn.style.background="black"
        }
    }
    for (let i=0;i<hf_nav.children.length;i++){
        hf_nav.children[i].onclick=function () {
            console.log()
            pf_beijing.style.backgroundImage = 'url(' + this.children[0].src + ')';
        }
    }
}

hf();